body, html {
  background: #efefef;
  color: #666;
}

html {
  font-size: 10px;
  overflow-x: hidden;
}

body {
  font-size: 1.4rem;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-weight: normal;
}

.row {
  margin: 0;
}

.card {
  margin-bottom: 1rem;
}


.dux-html {

  height: 100%;
}

.dux-g {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  @media all and (max-width: 641px) {
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

.dux-hide {
  display: none;
}

.dux-table-auto {
  overflow-y: auto;
  @media all and (max-width: 641px) {
    height: auto !important;
  }
}


.dux-layout-aside {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, .2);
  z-index: 99;

  .aside-main {
    position: fixed;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100px;
    background: $aside-background;

    .team-logo {
      display: block;
      color: #fff;
      text-align: center;
      padding: 20px 5px;
      font-size: 2rem;

      small {
        background: $aside-label;
        color: #fff;
        font-size: 1.2rem;
        border-radius: 2px;
        padding: 0px 2px;
      }
    }

    .main-nav {
      position: relative;
      overflow: hidden;
      width: 100px;
      height: calc(100% - 100px);
      ul {
        width: 120px;
        height: 100%;
        overflow-x: hidden;
        overflow-y: scroll;
        position: absolute;
        left: 0;
        padding: 0;
        margin: 0;
        
        &::-webkit-scrollbar {
          display: none;
        }

        li {
          padding: 0;
          list-style: none;

          a {
            color: rgba(#fff, .7);
            display: block;
            padding: 10px 20px;

            i {
              margin-right: 5px;
              width: 16px;
              text-align: center;

              &:before {
                text-align: center;
              }
            }

            &:hover {
              color: #fff;
              background: darken($aside-background, 5%);
            }

            &.active {
              background: lighten($aside-background, 5%);
              color: #fff;
            }
          }
        }
      }

    }

  }

  .aside-sub {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 100px;
    overflow: hidden;
    width: 120px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #ddd;
    a {
      cursor: pointer;
      color: #666;
    }
    box-shadow: 0 0 1px rgba(0, 0, 0, .1);
    .nav-layout {
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      margin-right: -17px;
    }

    .sub-top {
      padding: 0 10px;
      height: 50px;
      line-height: 50px;
      font-size: 1.6rem;
      border-bottom: 1px solid #eee;
    }

    .sub-search {
      padding: 10px;
      padding-top: 0;

      input {
        height: 35px;
        border-radius: 8px;
        background: #f5f5f5;
      }
    }

    .sub-nav {
      .nav-name {
        padding: 10px;
        color: #ccc;
        font-size: 12px;
      }

      ul {
        margin: 0;
        padding: 0;
        list-style: none;
        margin-bottom: 10px;

        li {
          padding: 0;

          a {
            display: block;
            padding: 10px;
            position: relative;

            &.active {
              background: rgba($global-primary-background, .1);
              border-right: 4px solid $global-primary-background;
              width: 120px;
            }

            &:hover {
              background: rgba($global-primary-background, .2);
            }
          }
        }

      }
    }

  }
}


.dux-layout-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 220px;
  background: #fff;
  height: 50px;
  box-shadow: 0 0 1px rgba(0, 0, 0, .1);
  z-index: 99;

  .top-name {
    padding-left: 10px;
    font-size: 1.6rem;
    line-height: 50px;

    small {
      color: #bbb;
    }

  }

  .top-menu {
    text-align: right;
    padding-left: 20px;
    line-height: 50px;
    margin-bottom: 0;

    li {
      padding: 0;
      margin: 0;
      margin-left: 20px;

      &.uk-active {
        a {
          line-height: 48px;
          color: $global-primary-background;
          border-bottom: 2px solid $global-primary-background;
        }
      }
    }

    a {
      font-weight: normal;
      display: inline-block;
      padding: 0 10px;

    }
  }

  .top-action {
    > a {
      display: inline-block;
      line-height: 50px;
      padding: 0 20px;
      border-left: 1px solid #ddd;
      background: #fff;
      font-size: 1.6rem;
      color: #666;
      font-weight: normal;

      &:hover {
        color: $global-primary-background;
      }
    }
  }
}

.dux-layout-main {
  margin-top: 50px;
  margin-left: 220px;
  padding: 10px;
}


.dux-empty-sub {
  left: 100px;
}

.dux-empty-sub.dux-layout-main {
  margin-left: 100px;
}

.dux-modal-media {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  .item {
    padding: 10px;
    width: 260px;
  }
  .item-empty {
    height: 0;
  }
}


.dux-media-mall {
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;

  .mall-top {
    position: relative;

    .img {
      height: 150px;
      overflow: hidden;

      img {
        width: 100%;
      }
    }

    .title {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 5px 10px;
      background: rgba(0, 0, 0, .5);
      color: #fff;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .mall-info {
    display: flex;
    padding: 10px 0;
    font-size: 1.6rem;
    .price {
      flex: 1;
      color: red;
    }
    .store {

    }
  }

  .mall-action {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    text-align: right;
  }
}